
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>登录页面</title>
	<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<link href="${pageContext.request.contextPath}/css/style.css"
		  type=text/css rel=stylesheet>
	<link href="${pageContext.request.contextPath}/css/boot-crm.css"
		  type=text/css rel=stylesheet>
	<script src="${pageContext.request.contextPath}/js/jquery-1.11.3.min.js">
	</script>
	<meta content="MSHTML 6.00.2600.0" name=GENERATOR>
	<script>
		// 判断是登录账号和密码是否为空
		function check(){
			var usercode = $("#usercode").val();
			var password = $("#password").val();
			if(usercode=="" || password==""){
				$("#message").text("账号或密码不能为空！");
				return false;
			}
			return true;
		}
	</script>
</head>
<body leftmargin="0"  topmargin="0" marginwidth="0" marginheight="0" background="${pageContext.request.contextPath}/images/rightbg.jpg">
<div ALIGN="center">
	<table border="0" width="1140px" cellspacing="0" cellpadding="0" id="table1">
		<tr>
			<td height="93"></td>
			<td></td>
		</tr>
		<tr>
			<td background="${pageContext.request.contextPath}/images/rights.jpg" width="740" height="412"></td>
			<td class="login_msg" width="400" align="center">
				<!--.fieldset标签定义及用法 在html中,fieldset标签内容的周围将绘制边框,通常使用来将表单内的相关元素分组,在相关表单元素周围绘制边框。-->
				<fieldset style="width: auto;margin:0px auto;">
					<legend>
						<font style="font-size: 15px" face="宋体">
							欢迎使用BOOT客户管理系统
						</font>
					</legend>
					<font color="red">
						<span id="message">${msg}</span>
					</font>
					<form action="${pageContext.request.contextPath}/login.action" method="post" onsubmit="return check()"><br/><br/>
						账&nbsp;号：<input id="usercode" type="text" name="usercode" /><br/><br/>
						密&nbsp;码：<input  id="password" type="password" name="password"/><br/><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<center><input type="submit" class="login_msg" value="登录"  /></center>

					</form>
				</fieldset>
			</td>
		</tr>
	</table>
</div>

<div class="loginbm"><center>计科1807邓亚楠</center>
</div>
</body>
</html>
